<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <div style="height:500px">
            <h:form>
                <p:growl id="msgs" showDetail="true" />

                <p:dashboard id="board" model="#{dashboardBean.model}">
                    <p:ajax event="reorder" listener="#{dashboardBean.handleReorder}" update="msgs" />

                    <p:panel id="sports" header="Sports">
                        <h:outputText value="Sports Content" />
                    </p:panel>

                    <p:panel id="finance" header="Finance" toggleable="true" closable="true">
                        <h:outputText value="Finance Content" />
                    </p:panel>

                    <p:panel id="lifestyle" header="Lifestyle" closable="true">
                        <h:outputText value="Lifestyle Content"  />
                    </p:panel>

                    <p:panel id="weather" header="Weather" toggleable="true">
                        <h:outputText value="Weather Content" />
                    </p:panel>

                    <p:panel id="politics" header="Politics" closable="true">
                        <h:outputText value="Politics Content" />
                    </p:panel>
                </p:dashboard>

                <div style="clear:both" />
            </h:form>
        </div>
    </h:body>
</html>
